

/**
 * 分页数据
 */
export class ClassPagination { //配置类型
    /**
     * 显示第几页
     */
    page: number = 1;
    /**
     * 一页显示多少条
     */
    limit: number = 10;
    /**
     * 总条数
     */
    total: number = 0;
}

// 广告管理类型
export class ClassAdvertisDialogForm {
    color: string = '';
    imgUrl: string = '';
    status: number | '' = 0;
    title: string = '';
    type: number | '' = '';
    unionType: number | '' = '';
    unionValue: string = '';
    adminId: number | '' = ''
    adId: number | '' = ''
}


export class ClassDrawerRuleForm {
    spuId: string | '' = '';
    gmtStart: string | '' = '';
    gmtEnd: string | '' = '';
    minNum: number = 0;
    automaticRefund: number = 0;
    groupShopSkuList: object[] | string = [];
    id?: number = 0;
}


/**
 * 商品添加 类型
 */
export class ClassGoodsadd {
    /**
     * 商品名称
     */
    title: string = '';
    /**
     * 原始价格
     */
    originalPrice: number = 0;
    /**
     * 当前价格
     */
    price: number = 0;
    /**
     * VIP价格
     */
    vipPrice: number = 0;
    /**
     *剩余库存
     */
    // stock: number | string = '';
    /**
     *运费模板
     */
    freightTemplateId: number | string = '';
    /**
     *是否在售
     */
    status: number | '' = 1;
    /**
     *商品图片列表
     */
    imgList: string[] = [];
    /**
     *商品图片
     */
    img: string = '';
    /**
     *商品单位
     */
    unit: string = '';
    /**
     *所属类目
     */
    categoryId: number | string = '';
    /**
     *商品简介
     */
    description: string = '';
    /**
     *商品详细介绍
     */
    detail: string = '';
    /**
     *规格表
     */
    specificationList: ClassSpecificationList[] = [];
    /**
     *属性列表
     */
    attributeList: ClassAttributeList[] = [];
    /**
     *sku列表
     */
    skuList: ClassSkuList[] = [];
}

class ClassAttributeList {
    attribute: string = '';
    value: string = '';
}
class ClassSpecificationList {
    title: string = '';
    values: string[] = [];
    gmtCreate: number = 0;
    gmtUpdate: number = 0;
    inputSkuTagVisible: boolean = false;
    inputSkuTagValue: string = '';
}
class ClassSkuList {
    price: number = 0;
    vipPrice: number = 0;
    originalPrice: number = 0;
    stock: number = 0;
    barCode: number = 0;
    weight: number = 0;
    img: string = '';
    title: string = '';
    specification: string = '';
}


// 测试三类型
export class ClassText {
    sales: string = '';
    skuList:ClassTextValue[] = []
}

class ClassTextValue {
    title:string = '';
    values: string[] = []
}




